<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="btn-toolbar pagination pagination-centered">
	<div class="btn-group">
		<${articleModel.pageNum==1?"span":"a"} class="btn ${articleModel.pageNum==1?"disabled":""}" href="${pageContext.request.contextPath}/new/${articleModel.timeScope}/1"><i class="icon-fast-backward"></i></${articleModel.pageNum==1?"span":"a"}>
		<${articleModel.pageNum==1?"span":"a"} class="btn ${articleModel.pageNum==1?"disabled":"" }" href="${pageContext.request.contextPath}/new/${articleModel.timeScope}/${articleModel.pageNum-1}"><i class="icon-backward"></i></${articleModel.pageNum==1?"span":"a"}>
		<c:forEach var="i" begin="${(articleModel.pageNum-5)>0?(articleModel.pageNum-(articleModel.rowNum-articleModel.pageNum>5?5:9-articleModel.rowNum+articleModel.pageNum)):1 }" end="${articleModel.pageNum-1 }">
			<a class="btn" href="${pageContext.request.contextPath}/new/${articleModel.timeScope}/${i}">${i}</a>
		</c:forEach>
		<span class="btn disabled current">${articleModel.pageNum }</span>
		<c:forEach var="i" begin="${articleModel.pageNum+1}" end="${(11-articleModel.pageNum)>4?(10<articleModel.rowNum?10:articleModel.rowNum):((articleModel.pageNum+4)<articleModel.rowNum?(articleModel.pageNum+4):articleModel.rowNum)}">
			<a class="btn" href="${pageContext.request.contextPath}/new/${articleModel.timeScope}/${i}">${i}</a>
		</c:forEach>
		<${articleModel.pageNum==articleModel.rowNum?"span":"a"} class="btn ${articleModel.pageNum==articleModel.rowNum?"disabled":""}" href="${pageContext.request.contextPath}/new/${articleModel.timeScope}/${(articleModel.pageNum+1)>articleModel.rowNum?articleModel.rowNum:(articleModel.pageNum+1)}">
			<i class="icon-forward"></i>
		</${articleModel.pageNum==articleModel.rowNum?"span":"a"}>
		<${articleModel.pageNum==articleModel.rowNum?"span":"a"} class="btn ${articleModel.pageNum==articleModel.rowNum?"disabled":""}" href="${pageContext.request.contextPath}/new/${articleModel.timeScope}/${articleModel.rowNum}">
			<i class="icon-fast-forward"></i>
		</${articleModel.pageNum==articleModel.rowNum?"span":"a"}>
	</div>
</div>